import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
	{
		path: '/',
		name: 'login',
		component: () => import('@/views/login'),
	},
	{
		path: '/home',
		name: 'name',
		component: () => import('@/views/home'),
		children: [
			{
				path: '',
				name: 'list',
				component: () => import('@/components/list'),
			},
		],
	},
]

const router = new VueRouter({
	routes,
})

export default router
